<script setup lang="ts">
import { useRoute, useRouter } from 'vue-router';


const route = useRoute()
const router = useRouter()
</script>

<template>
  <div class="search">
    <h1>文章详情</h1>
    <p>文章详情的id: {{ route.params.id }}</p>
    <button @click=" router.push('/')">返回</button>
  </div>
</template>

<style></style>